<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>{$tour_list['name']}</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div class="doRefresh">修改分享标题</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>
<div class="wapper bgwhite travalList">
    <dl class="item clearfix">
        <dt>
            <a href="{:U('Agency/details',array('id'=>$tour_list['id']))}">
                <if condition="$tour_list.cover_pic eq ''">
                    <img src='http://cdn.lydlr.com/public/images/temp/1.jpg'/>
                    <else/>
                    <img src="{$pic}"/>
                </if>
            </a>
        </dt>
        <dd>
            <a href="{:U('Agency/details',array('id'=>$tour_list['id']))}">
                <p class="name">{$tour_list.name}</p>

                <div class="mid clearfix">
                    <span class="tag pull-left">{$lineTypeName}</span>
                    <span class="price pull-right"><dfn>&yen;{$tour_list.min_price}</dfn>起</span>
                </div>
                <div class="bottom clearfix">
                    <span class="date pull-left">{$tour_list.begin_time}</span>
                    <span class="ck pull-right">[详情]</span>
                </div>
            </a>
        </dd>
    </dl>
</div>
<div class="wapper bgwhite">
        <form method="post" action="{:U('Agency/changeTitle')}">
            <input id="changeTitle" type="hidden" value="{:U('Agency/changeTitle')}"/>
            <input id="tour_Id" type="hidden" value="{$tour_list.id}"/>
            <table class="modifyPrice" width="100%">
                <tr>
                    <th>分享标题</th>
                </tr>
                    <tr class="sku" >
                        <empty name="agencyTourTitle.title">
                            <td><input  type="text"  class="form-control price_blur shareTitle" style="width:100%; text-align: center;" value="{$tour_list.name}"/></td>
                            <else />
                            <td><input  type="text" class="form-control price_blur shareTitle" style="width:100%; text-align: center;" value="{$agencyTourTitle.title}"/></td>
                        </empty>

                    </tr>
                    <tr>
                        <td colspan="3">
                            <input type="button" value="保存" class="btn btn-warning btn-block pull-right saveTitle"
                                   style="width:80px;"/>
                        </td>
                    </tr>
            </table>
        </form>

    <!-- 添加成功提示  -->
    <div class="modal fade popWin bs-example-modal-sm" id="myModalSuc" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc"></i>保存成功</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning submit" data-dismiss="modal" aria-label="Close">确认
                    </button>
                    <button type="button" class="btn btn-default reset" data-dismiss="modal" aria-label="Close">取消
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade popWin bs-example-modal-sm" id="myModalErr" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc"></i>分享标题不能为空</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning submitError" data-dismiss="modal" aria-label="Close">
                        确认
                    </button>
                    <button type="button" class="btn btn-default resetError" data-dismiss="modal" aria-label="Close">
                        取消
                    </button>
                </div>
            </div>
        </div>
    </div>

    <footer class="footer">
        <include file="Template/foot"/>
    </footer>
</div>
</body>
</html>
